extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[稀有]归航信标"
	att.air = 80
	att.cd = 0.2
	price = 300
	info = "机库容量+2\n若佩戴者是舰载机(通过航母继承)，每次使用技能，均降低召唤者所有技能冷却1秒\n[color=#DC143C]同时装备两件时可升级[/color]"
func _connect():
	._connect()
	masCha.connect("onCastCdSkill",self,"onCastCdSkill")
	masCha.summLimit += 2

func onCastCdSkill(id):
	if masCha.isSumm and masCha.get("summoner") != null:
		for i in masCha.summoner.skills:
			if i.cd - i.nowTime > 1.5:
				i.nowTime += 1

func onDelCha():
	.onDelCha()
	masCha.summLimit -= 2

func upgrade():
	name = "[color=#FFFF00][史诗]归航信标"
	info = "机库容量+2\n若佩戴者是舰载机(通过航母继承)，每次使用技能，均降低召唤者所有技能冷却1秒"
	att.air = 160
	att.cd = 0.4